package lg.minecraft.plugin.library.listener;

import lg.minecraft.plugin.library.common.ObserverThread;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.plugin.Plugin;

/**
 * @author langle__
 * @version 1.0
 */
public class ServerEvent implements Listener {

    @EventHandler
    public void onPluginDisable(PluginDisableEvent event) {
        Plugin plugin = event.getPlugin();
        ObserverThread.INSTANCE.removeFileListener(plugin);
    }

}
